/*
 * FileName: CommonController.java
 *
 */
package com.mrc.core.base;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * Description:  接口返回的common
 * </p>
 *
 * @author Mrc
 * @version 4.1

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2016-12-21 下午5:53:26          Mrc        4.1         To create
 * </p>
 *
 * @since 
 * @see     
 */
public class CommonController {

    public static String STATUS_SUCCESS = "000000";
    public static String STATUS_FAILED = "-1";
    public static String MESSAGE_OK = "ok";

    /**
     * 返回的数据
     * @return
     */
    @SuppressWarnings("rawtypes")
    public static Map<String, Object> getReturnResult() {
        Map<String, Object> resultMap = new HashMap<String, Object>();
        resultMap.put("code", STATUS_SUCCESS);
        resultMap.put("message", MESSAGE_OK);
        resultMap.put("result", new ArrayList());
        return resultMap;
    }

}
